package com.mapbased.sfw.binding;

import com.mapbased.sfw.component.XmlContext;
import com.mapbased.sfw.model.RenderContext;

public class Req extends Binding {

	private String name;

	public Req(String name) {
		this.name = name;
	}

	@Override
	public String getValue(RenderContext rc) {
		return rc.req.param(name);
	}

	public void toXml(XmlContext xc) {
		xc.sb.append("@req{").append(name).append("}");

	}

}
